<template>
  <div class="app">

    <!-- header -->
    <van-nav-bar title="黑马程序员-11期" left-text="返回" left-arrow fixed />

    <!-- main -->
    <router-view />

    <!-- footer -->
    <van-tabbar v-model="active">
      <van-tabbar-item icon="wap-home" to="/home">home</van-tabbar-item>
      <van-tabbar-item icon="contact">会员</van-tabbar-item>
      <van-tabbar-item icon="cart" info="5">购物车</van-tabbar-item>
      <van-tabbar-item icon="search">搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data: () => ({
    active: 0
  })
};
</script>

<style>
.app {
  margin-top: 46px;
}
</style>
